package com.itheima.Demo01.demo01;

public class Eclass <E> {
    private E name;
    private E age;

    public Eclass() {
    }

    public Eclass(E name, E age) {
        this.name = name;
        this.age = age;
    }

    public E getName() {
        return name;
    }

    public void setName(E name) {
        this.name = name;
    }

    public E getAge() {
        return age;
    }

    public void setAge(E age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Eclass{" +
                "name=" + name +
                ", age=" + age +
                '}';
    }
}
